package contents.entities;

import contents.entities.Class;

public class Student {
    private Integer studentId;
    private String firstName;
    private String lastName;
    private String username;
    private Parent parent;
    private Class schoolClass;

    public Student(Integer studentId, String firstName, String lastName, String username, Parent parent, Class schoolClass) {
        this.studentId = studentId;
        this.firstName = firstName;
        this.lastName = lastName;
        this.username = username;
        this.parent = parent;
        this.schoolClass = schoolClass;
    }

    public Integer getStudentId() {
        return studentId;
    }

    public String getFirstName() {
        return firstName;
    }

    public String getLastName() {
        return lastName;
    }
    
    public String getUsername() {
        return username;
    }

    public Parent getParent() {
        return parent;
    }
    
    public Class getSchoolClass() {
        return schoolClass;
    }
    
    public String getFullName() {
        return firstName + " " + lastName;
    }

    /*
     * For purpose of web service.
     */
    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    /*
     * For purpose of web service.
     */
    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    /*
     * For purpose of web service.
     */
    public void setParent(Parent parent) {
        this.parent = parent;
    }

    /*
     * For purpose of web service.
     */
    public void setSchoolClass(Class schoolClass) {
        this.schoolClass = schoolClass;
    }

    /*
     * For purpose of web service.
     */
    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    /*
     * For purpose of web service.
     */
    public void setUsername(String username) {
        this.username = username;
    }
}
